package com.ruoyi.warn.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.annotation.AreaName;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import lombok.Data;

/**
 * @author zhangxiaohao
 * @comment 人员详情VO
 * @date 2023/2/15
 */
@Data
@ExcelIgnoreUnannotated
public class RyDetailVo {

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 日期
     */
    @ExcelProperty(value = "上次日期")
    private String lastTime;

    /**
     * 日期
     */
    @ExcelProperty(value = "日期")
    private String time;

    /**
     * 姓名
     */
    @ExcelProperty(value = "姓名")
    private String name;

    /**
     * 身份证
     */
    @ExcelProperty(value = "身份证")
    private String idno;

    /**
     * 管控地
     */
    @ExcelProperty(value = "管控地")
    private String area;

    @AreaName
    public String getAreaDetail() {
        return area;
    }

    /**
     * 联系电话
     */
    @ExcelProperty(value = "联系电话")
    private String mobile;

    /**
     * 负责人
     */
    @ExcelProperty(value = "负责人")
    private String fzr;

    /**
     * 人员类型
     */
    @ExcelProperty(value = "信息类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "user_business_sub_type")
    private String type;

}
